import request from '@/utils/request'

// 查询跟投管理列表
export function listDealUserInvestment(query) {
  return request({
    url: '/investment/dealUserInvestment/list',
    method: 'get',
    params: query
  })
}

// 查询跟投管理列表
export function getDealUserInvestmentSum(query) {
  return request({
    url: '/investment/dealUserInvestment/getSum',
    method: 'get',
    params: query
  })
}

// 查询跟投管理详细
export function getDealUserInvestment(id, dealId) {
  return request({
    url: '/investment/dealUserInvestment/' + id + '/' + dealId,
    method: 'get'
  })
}

// 保存跟投管理
export function saveDealUserInvestment(data) {
  return request({
    url: '/investment/dealUserInvestment/save',
    method: 'post',
    data: data
  })
}

// 删除跟投管理
export function delDealUserInvestment(id) {
  return request({
    url: '/investment/dealUserInvestment/' + id,
    method: 'delete'
  })
}

// 导出跟投管理
export function exportDealUserInvestment(query) {
  return request({
    url: '/investment/dealUserInvestment/export',
    method: 'get',
    params: query
  })
}
